import request from '@/utils/requestUtil'

export function memberLogin(data) {
	return request({
		method: 'POST',
		url: '/sso/login',
		header: {
			'content-type': 'application/x-www-form-urlencoded;charset=utf-8'
		},
		data: data
	})
}
export function loginByPayToken(data) {
	return request({
		method: 'GET',
		url: `/sso/loginByPayToken/${data.tenant}/${data.token}`
	})
}
export function memberInfo() {
	return request({
		method: 'GET',
		url: '/sso/info'
	})
}


export function getCaptcha(data) {
	return request({
		method: 'GET',
		url: `/sms/captcha/${data.phone}`
	})
}
export function loginByMobile(data) {
	return request({
		method: 'POST',
		url: '/sso/loginByPhone',
		header: {
			'content-type': 'application/x-www-form-urlencoded;charset=utf-8'
		},
		data: data
	})
}

